home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / Scribble.h < prev    next >
Encoding:
Text File  |  1992-04-25  |  708 b   |  39 lines

  1. #import "Graphic.h"
  2.  
  3. #define CHUNK_SIZE 64    /* this is a malloc "good size" */
  4.  
  5. @interface Scribble : Graphic
  6. {
  7.     float *points;    /* the points in the scribble */
  8.     char *userPathOps;    /* the linetos */
  9.     int length;        /* the number of points */
  10.     float bbox[4];    /* the bounding box of the scribble */
  11. }
  12.  
  13. /* Factory methods */
  14.  
  15. + cursor;
  16.  
  17. /* Free method */
  18.  
  19. - free;
  20.  
  21. /* Private methods */
  22.  
  23. - allocateChunk;
  24.  
  25. /* Methods overridden from superclass */
  26.  
  27. - (float)naturalAspectRatio;
  28. - (int)moveCorner:(int)corner to:(const NXPoint *)point constrain:(BOOL)flag;
  29. - (BOOL)create:(NXEvent *)event in:view;
  30. - draw;
  31.  
  32. /* Archiving methods */
  33.  
  34. - write:(NXTypedStream *)stream;
  35. - read:(NXTypedStream *)stream;
  36.  
  37. @end
  38.  
  39.